package herb;

import impsoft.scripting.ibot.itemrec.ItemCondition;
import impsoft.scripting.ibot.itemrec.ItemContains;

public enum Herb {
	AVANTOE("Avantoe", 10, 48),
	CANDANTINE("Candantine", 12.5, 65),
	DWARF("Dwarf", 13.75, 70),
	GUAM("Guam", 2.5, 3),
	HARRALANDER("Harralander", 6.5, 20),
	IRIT("Irit", 9, 40),
	KWUARM("Kwuarm", 11.25, 54),
	LANTADYME("Lantadyme", 13, 67),
	MARRENTILL("Marrentill", 3.75, 5),
	RANARR("Ranarr", 7.5, 25),
	SNAPDRAGON("Snapdragon", 11.8, 59),
	TARROMIN("Tarromin", 5, 11),
	TOADFLAX("Toadflax", 8, 30),
	TORSTOL("Torstol", 15, 75);

	private int levelRequirement;
	private String name;
	private double xp;

	Herb(String name, double xp, int levelRequirement) {
		this.name = name;
		this.xp = xp;
		this.levelRequirement = levelRequirement;
	}

	public int getLevelRequirement() {
		return levelRequirement;
	}

	public String getName() {
		return name;
	}

	public double getXp() {
		return xp;
	}

	public ItemCondition getCleanCondition() {
		return new ItemContains(name);
	}

	public ItemCondition getGrimyCondition() {
		return new ItemContains("Grimy " + name);
	}
}